package io.github.talelin.latticy.dto.banner;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @author lms
 * @date 2021/4/18 17:11
 * @description
 */
@Data
@NoArgsConstructor
public class CreateOrUpdateBannerDTO {

    @NotBlank
    @Length(min = 1,max = 60)
    private String name;

    @NotBlank
    @Length(min = 1,max = 60)
    private String title;

    @NotBlank
    @Length(min = 1,max = 255)
    private String img;

    @NotBlank
    @Length(min = 1,max = 255)
    private String description;
}
